package com.example.demo.service;

import com.example.demo.dao.order;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

public interface orderService {


    order addOrder(order order);

    List<order> getOrderByBuyName(String buyName);

    List<order> getOrderByBusinessName(String businessName);

    order getOrderById(long orderformId);

    order updOrderState(long orderformId,String orderformState);

    @Modifying
    @Transactional
    void delOrderById(long orderformId);
}